package org.example.huawei;

import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

/**
 * @author: lynn
 * @Descript: 明明随机数
 * @date: 2021/2/24 21:50
 * @version: 1.0
 */
public class HW3 {
    public static void main(String [] args){
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int size = scanner.nextInt();
            Set<Integer> numberSet = new TreeSet<>();

            for (int i = 0; i < size; i++) {
                numberSet.add(scanner.nextInt());
            }
            numberSet.forEach(System.out::println);
        }
    }


}
